﻿using UnityEngine;
using System.Collections;

public class GameSetting {

	public static GameSettingData instance;
	public static GameSettingData Instance{
		get{
			if (instance == null){
#if UNITY_EDITOR
				instance = Resources.Load("Data/gamesetting") as GameSettingData;
#else
				instance = GameTool.LoadObject ("gamesetting") as GameSettingData;
#endif
				if (instance == null)
					Debug.Log ("can't find GameSetting Data Please Check File:../Resources/Data/GameSetting.asset");
			}
			return instance;
		}
	}
}
